SET(SRC 
	teapots.c
)

FIND_PACKAGE(GLUT)
IF (GLUT_FOUND)
	MESSAGE("++ GLUT FOUND ++")
	MESSAGE(${GLUT_glut_LIBRARY})
ELSE (GLUT_FOUND)
	IF (MINGW)
		MESSAGE ("GLUT NOT FOUND not found, trying to use MINGW glut32")
		SET(GLUT_glut_LIBRARY glut32)
	ENDIF (MINGW)
	IF (MSVC)
		MESSAGE ("GLUT NOT FOUND, trying to use Bullet/Glut/glut32.lib for MSVC")
		SET(GLUT_glut_LIBRARY ${BULLET_PHYSICS_SOURCE_DIR}/Glut/glut32.lib)
	ENDIF (MSVC)
ENDIF (GLUT_FOUND)

#実行ファイル生成方法
ADD_EXECUTABLE(teapots ${SRC})

